Choose the images, tags and split of a training
A training does not have to take the whole dataset as it is. You can choose the tags it learns, train two tags as one, keep it to the images of some groups, and decide how the images are split between learning and testing. This guide goes through those choices on a dataset of glass jars, without launching the training.
What you will learn
- How to choose the tags a model learns
- How to train several tags as one
- How to train on some groups of images only
- How to set and keep the split of the images
Before you start
You need a labeled dataset. The rest of the training page is explained in Train your first model.
1. Look at the tags
Open the dataset, go to «Models», click «Train a new model» and choose «Production training». Section 2, «Images and tags», lists every tag with its images. The model learns the ticked tags, from their images only. «Select all» and «Deselect all» tick or untick every tag.

2. Tick a tag with few images
Tick a tag to add it. A tag needs at least 10 images (10 annotations in detection and segmentation): «stained» has eight, so it shows «Below the minimum», and the summary on the right lists the requirement. The platform leaves such tags unticked to start with.

3. Train two tags as one
«Output label» renames a tag for this training only. Give the same label to several tags and the model learns them as one class: here «stained» and «broken» become «defect», with enough images together, and the model will tell ok jars from defective ones. The tags of the dataset do not change.

4. Change the split
Section 3, «Data division», decides which images teach the model and which ones judge it. With «Auto assignment» the platform shares them out at random: 80 % for training, 10 % for validation, 10 % for test. Move the sliders to change it; the three must add up to 100 %, and the summary says so if they do not. With few images, a larger test set gives a fairer score. Here: 70, 15 and 15.

5. Keep the split
A random split changes with every training, so two trainings are tested on different images. Tick «Save data division» and the split is written into each image when the training starts: the next training can then use it as it is with «Current labeled», and the two scores are comparable. Some images here already have a set: the blue box asks whether to share out only the «Predetermined» ones, the default, or all of them again.

6. Train on some groups only
When the dataset has groups, section 2 starts with «Images included in the training». Choose «Filter by groups» and tick the groups to train on, here the jars of «line_1»: the count below says how many images that leaves, and the tags show their images in those groups only. See Organise images in groups.

7. Check the summary
The summary on the right counts the images and the tags the training will use, and says whether it is ready. «Tags» counts the ticked tags, not the classes the model learns: it says 3 here, though «stained» and «broken» train as one class, «defect». Click «Train» to launch it, or «All models» to leave without training: nothing of this is saved until a training starts.

Next steps
Recorded on Rosepetal release 1.8.15.